package v2.chapter2.textFile;

import java.nio.charset.Charset;
import java.util.Iterator;
import java.util.SortedMap;

public class OtherTest {

	public static void main(String[] args) {
		SortedMap<String, Charset> map=Charset.availableCharsets();
  		Iterator<String> itr= map.keySet().iterator();
  		while(itr.hasNext()) {
  			System.out.println(itr.next()+":"+map.get(itr.next()));
  		}  		
  		System.out.println("-----------------------");  		
  		System.out.println(Charset.defaultCharset());

	}

}
